﻿@model InfoTech.VinhSon.Models.ArticleGroupModel
@{
    ViewBag.Title = "Add Article Group";
    Layout = "~/Areas/Administrator/Views/Shared/_Dialog.cshtml";
}
@section script
{
    <script type="text/javascript">
        $(document).ready(function() {
            @if(true == ViewBag.Completed)
            {
                @:window.parent.closeWindowAddGroup(true);
            };
        });
    </script>
}
@Html.ValidationSummary()
<form class="stdform stdform2" method="POST">
    @Html.HiddenFor(c => c.ArticleId)
    <p>
        <label>
            Category</label>
        <span class="field">
            @Html.DropDownListFor(c => c.GroupId,
                                  (IEnumerable<SelectListItem>) ViewBag.Groups,
                                  new
                                      {
                                              @class = "uniformselect"
                                      })
            @Html.ValidationMessageFor(c => c.GroupId)
        </span>
    </p>
    <p>
        <label>
            From Date</label>
        <div class="field">
            @(Html.Telerik()
                  .DatePickerFor(c => c.FromDate))
            @Html.ValidationMessageFor(c => c.FromDate)
        </div>
    </p>
    <p>
        <label>
            To Date</label>
        <div class="field">
            @(Html.Telerik()
                  .DatePickerFor(c => c.ToDate))
            @Html.ValidationMessageFor(c => c.ToDate)
        </div>
    </p>
    <p class="stdformbutton">
        <label>
        </label>
        <input type="submit" value="Insert New" class="btn btn-primary" />
        <input type="button" class="btn" value="Cancel" onclick=" window.parent.closeWindowAddGroup(); " />
    </p>
</form>